import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

// 懒加载插件
import lazyPlugin from "vue3-lazy"

// 自定义loading插件
import Loading from "@/components/loading/index"
import Message from "@/components/message/index"

const app = createApp(App)

app.use(store)
app.use(router)
app.use(lazyPlugin, {
  loading: require("@/assets/img/img_loading.gif"),
  error: require("@/assets/img/img_error.gif")
})
app.use(Loading)
app.use(Message)
  
app.mount('#app')

export default app
